#ifndef __IMAGE__PROCESSING__
#define __IMAGE__PROCESSING__

#include <ros/ros.h>
#include <image_transport/image_transport.h>
#include <cv_bridge/cv_bridge.h>
#include <sensor_msgs/image_encodings.h>

#include <opencv2/opencv.hpp>
#include "opencv2/imgproc/imgproc.hpp"
using namespace cv;
class BoundingBoxDetection{
public:
  BoundingBoxDetection();
  ~BoundingBoxDetection();
  void CallBack(const sensor_msgs::ImageConstPtr& msg);
  Mat Processing(Mat mat1);
  void messageLoop();
private:
  ros::NodeHandle node;
  image_transport::ImageTransport imageTrans;
  image_transport::Subscriber sub;
  image_transport::Publisher pub;
  Scalar upper, lower;
  bool finished;
};
#endif 
